import http from '../../utils/http.js'
//添加收货地址
export const reqAddAddress = (data) => {
    return http.post('/userAddress/save', data)
}
// 获取收货地址
export const reqAddressList = () => {
    return http.get('/userAddress/findUserAddress')
}
//地址详情
export const reqAddressInfo = (id) => {
    return http.get(`/userAddress/${id}`)
}
//更新地址
export const reqUpdateAddress = (data) => {
    return http.post('/userAddress/update', data)
}
//删除地址
export const reqDelAddress = (id) => {
    return http.get(`/userAddress/delete/${id}`)
}